﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Net;
using System.Windows.Forms;

namespace SystemUpdate
{
    public partial class Step2WWW : UserControl
    {
        private DownloadFromHTTP from = new DownloadFromHTTP();

        public Step2WWW()
        {
            (Program.mainForm as SystemUpdateForm).downloadFrom = from;
            from.Settings = (Program.mainForm as SystemUpdateForm).Settings;

            InitializeComponent();

            this.textBox1.DataBindings.Add("Text", from.Settings, "SourceFile", true);
        }

        private void buttonProxy_Click(object sender, EventArgs e)
        {
            from.SetupProxy();
        }
    }
}
